package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

//测试的锁实体类
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "soul_lock")
public class LHlock implements Serializable {
    private static final long serialVersionUID = 4861627157186868141L;
    @Id
	private ObjectId id; //mongodb的id
	private Long userId; //用户的id
	private Integer level; //问卷的级别
	private Integer lock; //是否锁住 0 表示解锁，1表示锁住
}
